package cn.com.clearcloud.order.client;

import cn.com.clearcloud.store.service.StoreService;
import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;


/**
 * 实现的时本地的 client，而不是实现另一个项目的service
 */
@Component
public class StoreFallBack implements StoreClient {



    @Override
    public Integer deduct(String commodityCode, Integer count) {
        return -1;
    }


//    @Override
//    public StoreService create(Throwable throwable) {
//        return new StoreService() {
//            @Override
//            public int deduct(String commodityCode, int count) {
//                return -1;
//            }
//        };
//    }
}
